import { reactive } from "vue";
import type { FormRules } from "element-plus";
// import { isPhone } from "@pureadmin/utils";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
	orderNo: [{ required: true, message: "入库单号为必填项", trigger: "blur" }],
	orderDate: [{ required: true, message: "入库单日期为必填项", trigger: "change" }],
	companyId: [{ required: true, message: "公司为必填项", trigger: "change" }],
  orderType: [{ required: true, message: "单据类型为必填项", trigger: "change" }],
  customerId: [{ required: true, message: "客户为必填项", trigger: "change" }],
  keyboarder: [{ required: true, message: "入单员为必填项", trigger: "blur" }],
  supervisor: [{ required: true, message: "主管为必填项", trigger: "blur" }],
  transactor: [{ required: true, message: "经办人为必填项", trigger: "blur" }],
  updateToStore: [{ required: true, message: "更新执行为必填项", trigger: "blur" }],
});
